import React, { Component } from 'react'
// 如果需要高亮则需要使用NavLink 默认高亮类名为 activeClassName  默认为active可以不用写
// import { Link } from 'react-router-dom'
import { NavLink } from 'react-router-dom'
import './nav.css'

export default class nav extends Component {
  render () {
    // console.log(this.props)
    return (
      <div className="navs">
      <NavLink className="nav_item" {...this.props} />
      </div>
    )
  }
}